import {
  Component,
  OnInit,
  ViewChild,
  HostBinding,
  Inject
} from "@angular/core";
import { MatPaginator, MatSort, MatTableDataSource } from "@angular/material";
import { LocaleService, TranslationService, Language } from "angular-l10n";
import { MatBottomSheet, MatBottomSheetRef } from "@angular/material";
import { MAT_BOTTOM_SHEET_DATA } from "@angular/material";

@Component({
  selector: "app-detail-component",
  templateUrl: "./detail.component.html",
  styleUrls: ["./detail.component.scss"]
})
export class DetailComponent {
  constructor(
    private bottomSheetRef: MatBottomSheetRef<DetailComponent>,
    @Inject(MAT_BOTTOM_SHEET_DATA) public data: any
  ) {}

  openLink(event: MouseEvent): void {
    this.bottomSheetRef.dismiss();
    event.preventDefault();
  }
}
